package com.lockmem.constants;

public class Resources {
	private ResourceNumNamePair[] resources;

	public Resources(ResourceNumNamePair[] resources) {
		this.resources = resources;
	}
	
	public String getResourceName(int num){
		for(int i =0 ;i<resources.length;i++){
			if(resources[i].getNum()==num)
				return resources[i].getName();
		}
		return null;
	}
}
